namespace AdmissionQA.Domain.Entities;

/// <summary>
/// 校园生活实体
/// </summary>
public class CampusLife : EntityBase
{
    /// <summary>
    /// 类别（如住宿、餐饮、社团等）
    /// </summary>
    public string Category { get; private set; }

    /// <summary>
    /// 向量化Embedding字段
    /// </summary>
    public float[]? Embedding { get; set; }

    /// <summary>
    /// 构造函数
    /// </summary>
    private CampusLife(string category)
    {
        Category = category;
    }

    /// <summary>
    /// 创建校园生活实例
    /// </summary>
    public static CampusLife? CreateCampusLife(string category)
    {
        // 可以加入一些判断

        return new CampusLife(category);
    }

    /// <summary>
    /// 更新校园生活
    /// </summary>
    public bool UpdateCampusLife(string newCategory, string? newDescription)
    {
        // 可以加入一些判断

        Category = newCategory;
        Description = newDescription;

        return true;
    }
}
